﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GrayParrot.Web.Formly;

namespace ConsoleApplication1
{
    public class MovimentiExMetadata
    {
        //[FormFieldAttribute(Type = FormFieldTypes.Input)]
        //[TextTemplateOptionsAttribute(Label = "Num. DDT",
        //    Placeholder = "Indicare il numero di DDT",
        //    Required = true,
        //    MinLength = 1,
        //    MaxLength = 50)]
        //public string NumeroDdt { get; set; }

        //[FormFieldAttribute(Type = FormFieldTypes.Input)]
        //[TextTemplateOptionsAttribute(Label = "Num. Documento",
        //    Placeholder = "Indicare il numero di documento",
        //    Required = true,
        //    MinLength = 1,
        //    MaxLength = 50)]
        //public string NumeroDocumento { get; set; }

        //[FormFieldAttribute(Type = FormFieldTypes.DateTimepicker)]
        //[DateTimeTemplateOptions(Label = "Data movimento",
        //                         Placeholder = "Indicare la data del movimento...",
        //                         Required = true,
        //                         RenderingMode = DateTimeRenderingModes.DropDown)]
        //public DateTime DataMovimento { get; set; }

        //[FormFieldAttribute(Type = FormFieldTypes.Select)]
        //[SelectTemplateOptions(Label = "Cliente",
        //                       Placeholder = "Indicare il Cliente a cui fa capo il movimento di conto deposito...",
        //                       Required = true,
        //                       Callback = "/api/Common/LoadCustomers", ForceLoad = true)]
        //public Guid Customer { get; set; }

        [FormFieldAttribute(Type = FormFieldTypes.RepeatSection)]
        [RepeatingSectionTemplateOptions(Label = "Articoli",
                               Placeholder = "Indicare la lista di articoli che fanno parte del DDT...",
                               Required = true, 
                               Fields = "Prenotata, Articolo, Quantita",
                               DrawDirection=DrawDirections.Row)]
        public List<MovimentoDetailBag> Detail { get; set; }

    }
}
